package com.photoeditor.demo.model.bean.stash;

import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.RectF;

/**
 * Created by Administrator on 2017/6/23 0023.
 */

public interface ContainerBean {

    void setIsTouch(boolean isTouch);
    boolean isTouch();

    Matrix getMatrix();

    RectF getRect();

    RectF getButtonRect();
    RectF getSettingRect();
    RectF getDeleteRect();
    RectF getLeftOperationRect();
    RectF getTopOperationRect();
    RectF getRightOperationRect();
    RectF getBottomOperationRect();

    void setDegree(float degree);
    float getDegree();

    Bitmap getBitmap();

    void dealScaleAndRotation(float downX, float downY, float nowX, float nowY);
    void operationLeft(float dx);
    void operationRight(float dx);
    void operationTop(float dy);
    void operationBottom(float dy);

    void move(float dx, float dy);
    void moveTo(RectF lastRectF, float dx, float dy);

    void setScale(float scale);
    void scaleTo(RectF lastRectF, float scale);

    void setLastMatrix(Matrix matrix);

    void doScaleMove(RectF baseRect, RectF supperRect, Matrix matrix, Matrix cacheMatrix, RectF viewRect);

    void setDegreeDirect(float degree);

    void setFlip(boolean horizontal, float value);
    float getFlipX();
    float getFlipY();

    int getType();

    RectF getLastRectBeforeScale();

    void onDestroy();

}
